<?php
html::printPath('viregWizard.success-title', 'viregWizard.success-desc');
$msg->printMessages();

echo '<p>' . text::getEscaped('viregWizard.success-thankYou') . '<br/><b>' . $this->data->viSeminar['name'] . '</b>.</p>';
//if (Kohana::config('yosemin.sendingEmailsEnabled')) {
    echo '<p>' . text::getEscaped('viregWizard.success-emailSent') . '</p>';
//}
echo '<p>' . text::getEscaped('viregWizard.success-whereToGo') . '</p>';
echo '<ul>';
echo '<li>' . html::anchor('/user/myRegistration/all', text::get('userSpace.menu-myRegistrations')) . '</li>';
echo '</ul>';

// echo '<p>' . text::getEscaped('viregWizard.validOnlyWhenPaid') . '</p>';

echo '<table class="displayTable">';
echo '<caption>' . text::getEscaped('viregWizard.paymentInfoTable') . '</caption>';
echo '<tbody>';
echo '<tr><th>' . text::getEscaped('viRegistration.total_price') . '</th><td>' . format::decimal($this->data->viRegistration['total_price']) . ' ' . text::get('currency.mark-' . $this->data->viRegistration['currency_code']) . '</td></tr>';
echo '<tr><th>' . text::getEscaped('viregWizard.payment') . '</th><td>' . text::getEscaped('viregWizard.paymentType-' . $this->data->viRegistration['payment_type']) . '</td></tr>';
if ($this->data->viRegistration['payment_type'] == 'bank') {
    echo '<tr><th>' . text::getEscaped('bankAccount.number') . '</th><td>' . $this->data->viSeminar['bankAccount']['number'] . '/' . $this->data->viSeminar['bankAccount']['bank_number'] . '</td></tr>';
    echo '<tr><th>' . text::getEscaped('viSeminar.variable_symbol') . '</th><td>' . $this->data->viSeminar['variable_symbol'] . '</td></tr>';
    echo '<tr><th>' . text::getEscaped('myRegistration.specific_symbol') . '</th><td>' . $this->data->viRegistration['id'] . '</td></tr>';
}
echo '</tbody>';
echo '</table>';
?>
